package com.dkm.ou.me.persistence.entity;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:资源权限 Tbl对象
 * 开发公司:SKG.COM
 * 开发人员:刘启辉
 * 创建时间:2015-01-17 09:19:18
 */
 @ITable(name="res",code="skg_ou_res")
public class ResTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*资源权限 ID*/
	@IField(name="subsysId",column="subsys_id_")
	protected String  subsysId; 		/*子系统 ID*/
	@IField(name="name",column="name_")
	protected String  name; 		/*名称*/
	@IField(name="type",column="type_")
	protected String  type; 		/*menu=菜单；item=菜单项；button=功能按钮*/
	@IField(name="content",column="content_")
	protected String  content; 		/*资源内容（URL或编码）*/
	@IField(name="parentId",column="parent_id_")
	protected String  parentId; 		/*父资源 ID*/
	@IField(name="path",column="path_")
	protected String  path; 		/*树路径*/
	@IField(name="depth",column="depth_")
	protected Integer  depth; 		/*所属层次*/
	@IField(name="icon",column="icon_")
	protected String  icon; 		/*图标*/
	@IField(name="isActived",column="is_actived_")
	protected char  isActived; 		/*是否激活*/
	@IField(name="sort",column="sort_")
	protected Integer  sort; 		/*排序号*/
	@IField(name="belong",column="belong_")
	protected String  belong; /*归属角色类型*/
	
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 资源权限 ID
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setSubsysId(String subsysId) 
	{
		this.subsysId = subsysId;
	}
	/**
	 * 返回 子系统 ID
	 * @return
	 */
	public String getSubsysId() 
	{
		return this.subsysId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}
	/**
	 * 返回 名称
	 * @return
	 */
	public String getName() 
	{
		return this.name;
	}
	public void setType(String type) 
	{
		this.type = type;
	}
	/**
	 * 返回 menu=菜单；item=菜单项；button=功能按钮
	 * @return
	 */
	public String getType() 
	{
		return this.type;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}
	/**
	 * 返回 资源内容（URL或编码）
	 * @return
	 */
	public String getContent() 
	{
		return this.content;
	}
	public void setParentId(String parentId) 
	{
		this.parentId = parentId;
	}
	/**
	 * 返回 父资源 ID
	 * @return
	 */
	public String getParentId() 
	{
		return this.parentId;
	}
	public void setPath(String path) 
	{
		this.path = path;
	}
	/**
	 * 返回 树路径
	 * @return
	 */
	public String getPath() 
	{
		return this.path;
	}
	public void setDepth(Integer depth) 
	{
		this.depth = depth;
	}
	/**
	 * 返回 所属层次
	 * @return
	 */
	public Integer getDepth() 
	{
		return this.depth;
	}
	public void setIcon(String icon) 
	{
		this.icon = icon;
	}
	/**
	 * 返回 图标
	 * @return
	 */
	public String getIcon() 
	{
		return this.icon;
	}
	public void setIsActived(char isActived) 
	{
		this.isActived = isActived;
	}
	/**
	 * 返回 是否激活
	 * @return
	 */
	public char getIsActived() 
	{
		return this.isActived;
	}
	public void setSort(Integer sort) 
	{
		this.sort = sort;
	}
	/**
	 * 返回 排序号
	 * @return
	 */
	public Integer getSort() 
	{
		return this.sort;
	}
	
	public String getBelong() {
		return belong;
	}
	public void setBelong(String belong) {
		this.belong = belong;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("subsysId", this.subsysId) 
		.append("name", this.name) 
		.append("type", this.type) 
		.append("content", this.content) 
		.append("parentId", this.parentId) 
		.append("path", this.path) 
		.append("depth", this.depth) 
		.append("icon", this.icon) 
		.append("isActived", this.isActived) 
		.append("sort", this.sort) 
		.append("belong", this.belong) 
		.toString();
	}
}